package com.aat.restful.springresteasy.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.aat.restful.springresteasy.bean.Book;

@Service
public class BookService {
	public List<Book> getAll() {
		List<Book> books = new ArrayList<>();
		Book b1 = new Book("Java", 122.99, "李刚");
		Book b2 = new Book("C++", 99.99, "李四");
		Book b3 = new Book("大数据", 88.99, "李三四");
		books.add(b1);
		books.add(b2);
		books.add(b3);
		return books;
	}
}
